Decision Server REST API - xoms/{xomname}/{xomversion} Resource - GET Method

Returns the description of a managed XOM. If the repository does not contain such a managed XOM, the response body is empty and the HTTP status 204 is returned.

Sample Method Invocation

GET /api/v1/xoms/{xomname}/{xomversion}[?parts={string}]

Parameters

The method has the following parameters:
Name Value Type Use Description
parts string optional The 'parts' URI query parameter, which is an optional parameter. Clients can use it to specify a list of one or more parts to be returned in the response data for a particular request. The value of the parts parameter is a "|"-delimited list of part names. In addition to specific part names, you can also specify "all" or "none". If the parts parameter is not specified, the default value "all" is used.
Value Description
all Default value. All the information in the XOM response (name, creationDate ...) is included.
none Only the identifier is included.
uri The URI of the XOM.
name The name of the XOM.
version The version of the XOM.
creationDate The creation date of the XOM.
sha1 The checksum of the XOM.
content The byte code in Base64 of the XOM. Because of the large amount of data received using this option, it is not part of the "all" option.

Request Content

None.

Response Content

The default content-type is application/xml.

MIME Type: application/json

(Schema to go here)
+ View Example
{
  "id" : "{Resource identifier}",
  "uri" : "{Resource URI}",
  "name" : "{Resource name}",
  "version" : "{Resource version}",
  "creationDate" : "2017-02-20T16:14:55.560Z",
  "sha1" : "{Resource SHA1 checksum}",
  "content" : "eG9tLmphcg=="
}

MIME Type: application/xml

+ View Schema
<?xml version="1.0" encoding="UTF-8"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="" version="1.0">

  <xs:element name="resource" type="resource"/>

  <xs:complexType name="resource">
    <xs:sequence>
      <xs:element minOccurs="0" name="id" type="xs:string"/>
      <xs:element minOccurs="0" name="uri" type="xs:string"/>
      <xs:element minOccurs="0" name="name" type="xs:string"/>
      <xs:element minOccurs="0" name="version" type="xs:string"/>
      <xs:element minOccurs="0" name="creationDate" type="xs:string"/>
      <xs:element minOccurs="0" name="sha1" type="xs:string"/>
      <xs:element minOccurs="0" name="content" type="xs:string"/>
    </xs:sequence>
  </xs:complexType>
</xs:schema>
+ View Example
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<resource>
    <id>{Resource identifier}</id>
    <uri>{Resource URI}</uri>
    <name>{Resource name}</name>
    <version>{Resource version}</version>
    <creationDate>2017-02-20T15:14:55.560Z</creationDate>
    <sha1>{Resource SHA1 checksum}</sha1>
    <content>eG9tLmphcg==</content>
</resource>

Status Codes

The method returns one of the following status codes:
Code Description
200 Successful completion.
204 Successful completion, no content available.
400 The parameters are not valid or they are missing.
401 The caller is not authorized for this request.
403 The caller is not allowed to complete this request.
404 The resource does not exist.
406 The requested content type or content encoding is not supported.
500 A severe problem has occurred, programmer's details are provided.

Available Since

8.0.1.0

Parent Topic: xoms/{xomname}/{xomversion} Resource